﻿using System;
using MedicalCare.Messages;

namespace MedicalCare
{
    public class AppPage
    {
        public static UserMessage CurrentUser
        {
            //get { return System.Web.HttpContext.Current.Session["CurrentUser"] as UserMessage; }
            get { return new UserMessage(){ Id = 16,
                                            UserName = "LVNurser"
            };
            }

            set { System.Web.HttpContext.Current.Session["CurrentUser"] = value; }
        }

        public static string CurrentValidationCode
        {
            get { return System.Web.HttpContext.Current.Session["CurrentValidationCode"] as string; }

            set { System.Web.HttpContext.Current.Session["CurrentValidationCode"] = value; }
        }
    }
}